﻿#ifndef CALENDARFRAGMENT_H
#define CALENDARFRAGMENT_H

#include <QWidget>

namespace Ui {
class CalendarFragment;
}

class CalendarFragment : public QWidget {
    Q_OBJECT

public:
    explicit CalendarFragment(int year,int month,QWidget *parent = nullptr);
    ~CalendarFragment();

private slots:
    void on_pushButton_nextMonth_clicked();

    void on_pushButton_previousMonth_clicked();

    void on_pushButton_clicked();

private:
    Ui::CalendarFragment *ui;
    int year,month;
    void loadUI();
    void clearAll();
};

#endif // CALENDARFRAGMENT_H
